/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年2月8日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package commond;

/**
 * @Type ConcreteCommand
 * @Desc
 * @author 52489
 * @date 2019年2月8日
 * @Version V1.0
 */
public class ConcreteCommand implements Command {

    Receiver receiver; // 命令真正执行者

    /**
     * @param receiver
     */
    public ConcreteCommand(Receiver receiver) {
        super();
        this.receiver = receiver;
    }

    /*
     * (non-Javadoc)
     * 
     * @see commond.Command#excute()
     */
    @Override
    public void excute() {
        // 命令执行前
        receiver.action();
        // 命令执行后
    }

}
